package com.banmao.test.replaceMethod;

import com.alibaba.fastjson2.JSON;
import org.springframework.beans.factory.support.MethodReplacer;

import java.lang.reflect.Method;

// 测试 replaced-method 标签
public class ReplaceMethod01 implements MethodReplacer {

	@Override
	public Object reimplement(Object obj, Method method, Object[] args) throws Throwable {
		System.out.println("=========================================");
		System.out.println(obj);
		System.out.println(JSON.toJSONString(method));
		System.out.println(JSON.toJSONString(args));
		System.out.println("=========================================");
		return null;
	}
}
